//
//  PopTool.h
//  ChampoinPeso
//
//  Created by mac on 2025/3/20.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, ButtonPositionType) {
    ButtonPositionTypeNone = 0,
    ButtonPositionTypeLeft = 1 << 0,
    ButtonPositionTypeRight = 2 << 0
};
typedef NS_ENUM(NSInteger, ShadeBackgroundType) {
    ShadeBackgroundTypeGradient = 0,
    ShadeBackgroundTypeSolid = 1 << 0
};

typedef void(^completeBlock)(void);

@interface PopTool : NSObject
@property (strong, nonatomic) UIColor *popBackgroudColor;
@property (assign, nonatomic) BOOL tapOutsideToDismiss;
@property (assign, nonatomic) ButtonPositionType closeButtonType;
@property (assign, nonatomic) ShadeBackgroundType shadeBackgroundType;

+ (PopTool *)sharedInstance;
- (void)showWithPresentView:(UIView *)presentView animated:(BOOL)animated;
- (void)closeWithBlcok:(void(^)(void))complete;

@end
NS_ASSUME_NONNULL_END
